* lisp/emacs-lisp/trace.el: Rewrite, use nadvice and lexical-binding.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Nov 2012 19:30:37 +0000 (14:30 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Nov 2012 19:30:37 +0000 (14:30 -0500)
commit3037a44a7c3878bfaff9ec685441f6d3eb56a3b2
treeb5db84ee1d6be664cf7912d510ce8eef0bb44ef5
parent54d3cbdfa65924d1dbe89e86f0939cc50f6e43bc
* lisp/emacs-lisp/trace.el: Rewrite, use nadvice and lexical-binding.
(trace-buffer): Don't purecopy.
(trace-entry-message, trace-exit-message): Add `context' arg.
(trace--timer): New var.
(trace-make-advice): Adjust for use in nadvice.
Add `context' argument.  Delay `display-buffer' via a timer.
(trace-function-internal): Use advice-add.
(trace--read-args): New function.
(trace-function-foreground, trace-function-background): Use it.
(trace-function): Rename to trace-function-foreground and redefine as
an alias to that new name.
(untrace-function, untrace-all): Adjust to the use of nadvice.
etc/NEWS
lisp/ChangeLog
lisp/emacs-lisp/trace.el